/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package baiwa.rta.model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 * @author jirapatjantsakool
 */
public class RMfrudtlModel extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer frudid;
    private String frudreqby;
    private String frudreqdat;
    private String frudpru;
    private String frudrmtyp;
    private String fruddtl;
    private String frudaps;
    private BigDecimal frudapsprc;
    private BigDecimal frudtbamt;
    private BigDecimal frudtbprc;
    private BigDecimal frudchramt;
    private BigDecimal frudchrprc;
    private String frudbr;
    private BigDecimal frudtotalcst;
    private String frudpaystat;
    private String frudremark;
    private String frudreqby2;
    private String frudreqdat2;
    private String frudautby;
    private String frudautdat;
    private String frudcreby;
    private String frudcredat;
    private String fruupdby;
    private String frudupddat;
    
//    FRUDBRAMT     decimal(10,2)  (NULL)           YES             (NULL)           select,insert,update,references         
//    FRUDCHR       varchar(1)     utf8_general_ci  YES             (NULL)           select,insert,update,references         
//    FRUDTB        varchar(1)     utf8_general_ci  YES             (NULL)           select,insert,update,references         
//    FRUDBRPRC 	decimal(10,2) 
    
    private BigDecimal frudbramt;
    private String frudchr;
    private String frudtb;
    private BigDecimal frudbrprc;
    
    private RMfruhdrModel fruhid;
    
    private Integer fruhidKey;

    public RMfrudtlModel() {
    }

    public RMfrudtlModel(Integer frudid) {
        this.frudid = frudid;
    }

    public Integer getFrudid() {
        return frudid;
    }

    public void setFrudid(Integer frudid) {
        this.frudid = frudid;
    }

    public String getFrudreqby() {
        return frudreqby;
    }

    public void setFrudreqby(String frudreqby) {
        this.frudreqby = frudreqby;
    }


    public String getFrudreqdat() {
		return frudreqdat;
	}

	public void setFrudreqdat(String frudreqdat) {
		this.frudreqdat = frudreqdat;
	}

	public String getFrudpru() {
        return frudpru;
    }

    public void setFrudpru(String frudpru) {
        this.frudpru = frudpru;
    }

    public String getFrudrmtyp() {
        return frudrmtyp;
    }

    public void setFrudrmtyp(String frudrmtyp) {
        this.frudrmtyp = frudrmtyp;
    }

    public String getFruddtl() {
        return fruddtl;
    }

    public void setFruddtl(String fruddtl) {
        this.fruddtl = fruddtl;
    }

    public String getFrudaps() {
        return frudaps;
    }

    public void setFrudaps(String frudaps) {
        this.frudaps = frudaps;
    }

    public BigDecimal getFrudapsprc() {
        return frudapsprc;
    }

    public void setFrudapsprc(BigDecimal frudapsprc) {
        this.frudapsprc = frudapsprc;
    }


    public BigDecimal getFrudtbamt() {
		return frudtbamt;
	}

	public void setFrudtbamt(BigDecimal frudtbamt) {
		this.frudtbamt = frudtbamt;
	}

	public BigDecimal getFrudtbprc() {
        return frudtbprc;
    }

    public void setFrudtbprc(BigDecimal frudtbprc) {
        this.frudtbprc = frudtbprc;
    }


    public BigDecimal getFrudchramt() {
		return frudchramt;
	}

	public void setFrudchramt(BigDecimal frudchramt) {
		this.frudchramt = frudchramt;
	}

	public BigDecimal getFrudchrprc() {
        return frudchrprc;
    }

    public void setFrudchrprc(BigDecimal frudchrprc) {
        this.frudchrprc = frudchrprc;
    }

    public String getFrudbr() {
        return frudbr;
    }

    public void setFrudbr(String frudbr) {
        this.frudbr = frudbr;
    }

    public BigDecimal getFrudtotalcst() {
        return frudtotalcst;
    }

    public void setFrudtotalcst(BigDecimal frudtotalcst) {
        this.frudtotalcst = frudtotalcst;
    }

    public String getFrudpaystat() {
        return frudpaystat;
    }

    public void setFrudpaystat(String frudpaystat) {
        this.frudpaystat = frudpaystat;
    }

    public String getFrudremark() {
        return frudremark;
    }

    public void setFrudremark(String frudremark) {
        this.frudremark = frudremark;
    }

    public String getFrudreqby2() {
        return frudreqby2;
    }

    public void setFrudreqby2(String frudreqby2) {
        this.frudreqby2 = frudreqby2;
    }


    public String getFrudautby() {
        return frudautby;
    }

    public void setFrudautby(String frudautby) {
        this.frudautby = frudautby;
    }


    public String getFrudautdat() {
		return frudautdat;
	}

	public void setFrudautdat(String frudautdat) {
		this.frudautdat = frudautdat;
	}

	public void setFrudreqdat2(String frudreqdat2) {
		this.frudreqdat2 = frudreqdat2;
	}

	public void setFrudcredat(String frudcredat) {
		this.frudcredat = frudcredat;
	}

	public void setFrudupddat(String frudupddat) {
		this.frudupddat = frudupddat;
	}

	public String getFrudcreby() {
        return frudcreby;
    }

    public void setFrudcreby(String frudcreby) {
        this.frudcreby = frudcreby;
    }


    public String getFruupdby() {
        return fruupdby;
    }

    public void setFruupdby(String fruupdby) {
        this.fruupdby = fruupdby;
    }


    public RMfruhdrModel getFruhid() {
        return fruhid;
    }

    public void setFruhid(RMfruhdrModel fruhid) {
        this.fruhid = fruhid;
    }

    public BigDecimal getFrudbramt() {
		return frudbramt;
	}

	public void setFrudbramt(BigDecimal frudbramt) {
		this.frudbramt = frudbramt;
	}

	public String getFrudchr() {
		return frudchr;
	}

	public void setFrudchr(String frudchr) {
		this.frudchr = frudchr;
	}

	public String getFrudtb() {
		return frudtb;
	}

	public void setFrudtb(String frudtb) {
		this.frudtb = frudtb;
	}

	public BigDecimal getFrudbrprc() {
		return frudbrprc;
	}

	public void setFrudbrprc(BigDecimal frudbrprc) {
		this.frudbrprc = frudbrprc;
	}

	public String getFrudreqdat2() {
		return frudreqdat2;
	}

	public String getFrudcredat() {
		return frudcredat;
	}

	public String getFrudupddat() {
		return frudupddat;
	}
	

	public Integer getFruhidKey() {
		return fruhidKey;
	}

	public void setFruhidKey(Integer fruhidKey) {
		this.fruhidKey = fruhidKey;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (frudid != null ? frudid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RMfrudtlModel)) {
            return false;
        }
        RMfrudtlModel other = (RMfrudtlModel) object;
        if ((this.frudid == null && other.frudid != null) || (this.frudid != null && !this.frudid.equals(other.frudid))) {
            return false;
        }
        return true;
    }

	@Override
	public String toString() {
		return "RMfrudtlModel [frudid=" + frudid + ", frudreqby=" + frudreqby
				+ ", frudreqdat=" + frudreqdat + ", frudpru=" + frudpru
				+ ", frudrmtyp=" + frudrmtyp + ", fruddtl=" + fruddtl
				+ ", frudaps=" + frudaps + ", frudapsprc=" + frudapsprc
				+ ", frudtbamt=" + frudtbamt + ", frudtbprc=" + frudtbprc
				+ ", frudchramt=" + frudchramt + ", frudchrprc=" + frudchrprc
				+ ", frudbr=" + frudbr + ", frudtotalcst=" + frudtotalcst
				+ ", frudpaystat=" + frudpaystat + ", frudremark=" + frudremark
				+ ", frudreqby2=" + frudreqby2 + ", frudreqdat2=" + frudreqdat2
				+ ", frudautby=" + frudautby + ", frudautdat=" + frudautdat
				+ ", frudcreby=" + frudcreby + ", frudcredat=" + frudcredat
				+ ", fruupdby=" + fruupdby + ", frudupddat=" + frudupddat
				+ ", frudbramt=" + frudbramt + ", frudchr=" + frudchr
				+ ", frudtb=" + frudtb + ", frudbrprc=" + frudbrprc
				+ ", fruhid=" + fruhid + "]";
	}


}
